import { defHttp } from '/@/utils/http/axios';
import { ContentTypeEnum } from '/@/enums/httpEnum';

enum Upi {
  getfundTransferList = '/admin-api/system/fund-transfer/page',
  getfundTransferAdd = '/admin-api/system/fund-transfer/create',
  getfundTransferEdit = '/admin-api/system/fund-transfer/update',
  getfundTransferDelete = '/admin-api/system/fund-transfer/delete',
}
/**
 * @description: 资金划拨
 */
export const fundTransferList = (params?: any) => {
  return defHttp.get<any>({ url: Upi.getfundTransferList, params });
};
export const fundTransferAdd = (params?: any) => {
  return defHttp.post<any>({ url: Upi.getfundTransferAdd, params });
};
export const fundTransferEdit = (params?: any) => {
  return defHttp.put<any>({ url: Upi.getfundTransferEdit, params });
};
export const fundTransferDelete = (params: any) => {
  return defHttp.delete<any>({
    url: Upi.getfundTransferDelete,
    params,
    headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED },
  });
};
